package com.zhxh.nzpos;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.zhxh.nzpos.login.LoginActivity;

public class BootReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context ctx, Intent arg1) {
		String action="android.intent.action.MAIN";  
		String category="android.intent.category.LAUNCHER";  
		Intent myi=new Intent(ctx,LoginActivity.class);  
		myi.setAction(action);  
		myi.addCategory(category);  
		myi.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);  
		ctx.startActivity(myi);  
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
